package com.ruoyi.compensationManagement.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.compensationManagement.domain.CompensationStaffpayroll;
import com.ruoyi.compensationManagement.domain.vo.CompensationStaffPayrollVo;
import com.ruoyi.compensationManagement.domain.vo.SalaryFileVo;
import com.ruoyi.compensationManagement.domain.vo.StaffPayrollImportVo;

/**
 * 工资表Service接口
 *
 * @author ruoyi
 * @date 2022-10-09
 */
public interface ICompensationStaffpayrollService {
    /**
     * 查询工资表
     *
     * @param staffpayrollId 工资表主键
     * @return 工资表
     */
    public CompensationStaffpayroll selectCompensationStaffpayrollByStaffpayrollId(Long staffpayrollId);

    /**
     * 查询工资表列表
     *
     * @param compensationStaffpayroll 工资表
     * @return 工资表集合
     */
    public List<CompensationStaffpayroll> selectCompensationStaffpayrollList(CompensationStaffpayroll compensationStaffpayroll);

    /**
     * 新增工资表
     *
     * @param compensationStaffpayroll 工资表
     * @return 结果
     */
    public int insertCompensationStaffpayroll(CompensationStaffpayroll compensationStaffpayroll);

    /**
     * 修改工资表
     *
     * @param compensationStaffpayroll 工资表
     * @return 结果
     */
    public int updateCompensationStaffpayroll(CompensationStaffpayroll compensationStaffpayroll);

    /**
     * 批量删除工资表
     *
     * @param staffpayrollIds 需要删除的工资表主键集合
     * @return 结果
     */
    public int deleteCompensationStaffpayrollByStaffpayrollIds(Long[] staffpayrollIds);

    /**
     * 删除工资表信息
     *
     * @param staffpayrollId 工资表主键
     * @return 结果
     */
    public int deleteCompensationStaffpayrollByStaffpayrollId(Long staffpayrollId);

    /**
     * 根据工号工资表信息
     */
    public Map<String, Object> getPayrollInformationByJobNumber(String jobNumber, Date date);



    /**
     * 确定工资表
     */
    public int determiningStaffPayroll(CompensationStaffpayroll compensationStaffpayroll);

    /**
     * 查询工资条
     *
     * @param compensationStaffpayroll
     * @return
     */
    List<CompensationStaffPayrollVo> selectCompensationStaffpayrollListToConvert(CompensationStaffpayroll compensationStaffpayroll);

    /**
     * 查询工资档案信息
     *
     * @param compensationStaffpayroll
     * @return
     */
    List<SalaryFileVo> selectCompensationStaffpayrollListToConvertSalaryFiles(CompensationStaffpayroll compensationStaffpayroll);


    /**
     * 导入工资Excel
     * @param staffPayrollList
     * @return
     */
    public String importStaffPayroll(List<StaffPayrollImportVo> staffPayrollList);
}
